import TreeChart from "../treeChart/TreeChart";
import EditTree from "../editTree/EditTree";
import { Route, Redirect } from "react-router-dom";
import React from "react";

//所有的路由组件都写在这里

export default function Router() {
  return (
    <div>
      <Route path="/tree"  component={TreeChart} />
      <Route path="/text" component={EditTree} />
      <Redirect path="/" to="/tree" />
    </div>
  );
}
